package com.sky.mapper;

import com.sky.dto.GoodsSalesDTO;
import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;


@Mapper
public interface OrderDetailMapper {

    void insert(List<OrderDetail> orderDetails);

    @Select("select * from sky_take_out.order_detail where order_id=#{id}")
    List<OrderDetail> getbyorderid(Long id);


    List<GoodsSalesDTO> getcount(LocalDateTime begin,LocalDateTime end);
}
